<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>操作-角色信息</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link href="${basePath}/admin/css/base.css" type="text/css" rel="stylesheet">
   	<style type="text/css">
		ul li{list-style:none;height:50px;}
	</style>
</head>
<body>
<p></p>
<div id="container" style="background:#f2ffe3 url(${basePath}/admin/images/main_00.jpg) left top repeat-x;">
<h2><#if actor.id??>更新<#else>添加</#if>角色</h2>&nbsp;&nbsp;
     <form action="${basePath}/admin/actor/<#if actor.id??>update<#else>save</#if>" method="POST" >
      	<input type="hidden" name="actor.id" value="${actor.id!}"/>
      	<ul>
        	<li>名称：		<input type="text" class="input_200" name="actor.name" value="${actor.name!}" />	${nameError!}</li>
        	
        	<li>
        		权限：		<#list modules as p>
        					<#assign str = p.id+','>
        					<#if old_modules?? && old_modules?index_of(str)!=-1>
        						<input type="checkbox" name=modules value="${p.id!}" checked="checked"/> ${p.name!}
        					<#else>
        						<input type="checkbox" name=modules value="${p.id!}"/> ${p.name!}
        					</#if>
        				</#list>
        				<font color="red">${modulesError!}</font>
        				<input type="hidden" name="old_modules" value="${old_modules!''}"/>
        	</li>
        	
        	<li>
        				<input type="reset" class="button_60" value="重置"	/>
        				<input type="submit" class="button_60" value="提交"	/>
        	</li>
             
           </ul>
      </form>
  </div>
</body>
</html>